package com.woniu.apiBoss.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.apiBoss.service.ApiPassengerService;
import com.woniu.internalcommon.dto.PassengerUser;
import com.woniu.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zcnovice
 * @data 2025/7/15 上午11:36
 */
@RestController
@RequestMapping("/passenger")
public class ApiPassengerController {
    @Autowired
    private ApiPassengerService apiPassengerService;

    @GetMapping("/selectAll")
    public ResponseResult<Page<PassengerUser>> selectAll(@RequestParam("current") Integer  current, @RequestParam("size") Integer size ) {
        ResponseResult<Page<PassengerUser>> all = apiPassengerService.getAll(current, size);
        return all;
    }
}
